package com.example.business_oa.service;

import com.example.comment_oa.dubbo.ShenPiLiuChengDubbo;
import com.example.comment_oa.pojos_vo.flowableVo.taskVo;
import io.seata.spring.annotation.GlobalTransactional;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class ShenPiQingJiaService {
    @DubboReference(version = "1.0.0")
    ShenPiLiuChengDubbo shenPiLiuChengDubbo;

    @GlobalTransactional(timeoutMills = 300000)
    public void QingJiaShenPiTongYi(taskVo taskVo){
        shenPiLiuChengDubbo.tongyiQingjia(taskVo);
    }


    @GlobalTransactional(timeoutMills = 300000)
    public void QingJiaShenPiJuJue(taskVo taskVo){
        shenPiLiuChengDubbo.jujueQingJia(taskVo);
    }

    @GlobalTransactional(timeoutMills = 300000)
    public void tongyiXuQIu(taskVo taskVo){
        shenPiLiuChengDubbo.tongyiXuQIu(taskVo);
    }

    @GlobalTransactional(timeoutMills = 300000)
    public void jujueXuQIu(taskVo taskVo){
        shenPiLiuChengDubbo.jujueXuQIu(taskVo);
    }

}
